package com.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class Order implements Serializable {
    String servicetype;//业务类型
    String servicestatus;//业务状态
    String clientname;//申请人
    String idcard;//身份证件号码
    Date registertime;//登记时间
    String uname;//终审人

    public String getServicetype() {
        return servicetype;
    }

    public void setServicetype(String servicetype) {
        this.servicetype = servicetype;
    }

    public String getServicestatus() {
        return servicestatus;
    }

    public void setServicestatus(String servicestatus) {
        this.servicestatus = servicestatus;
    }

    public String getClientname() {
        return clientname;
    }

    public void setClientname(String clientname) {
        this.clientname = clientname;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public Date getRegistertime() {
        return registertime;
    }

    public void setRegistertime(Date registertime) {
        this.registertime = registertime;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Order order = (Order) o;
        return Objects.equals(servicetype, order.servicetype) &&
                Objects.equals(servicestatus, order.servicestatus) &&
                Objects.equals(clientname, order.clientname) &&
                Objects.equals(idcard, order.idcard) &&
                Objects.equals(registertime, order.registertime) &&
                Objects.equals(uname, order.uname);
    }

    @Override
    public int hashCode() {
        return Objects.hash(servicetype, servicestatus, clientname, idcard, registertime, uname);
    }

    @Override
    public String toString() {
        return "Order{" +
                "servicetype='" + servicetype + '\'' +
                ", servicestatus='" + servicestatus + '\'' +
                ", clientname='" + clientname + '\'' +
                ", idcard='" + idcard + '\'' +
                ", registertime=" + registertime +
                ", uname='" + uname + '\'' +
                '}';
    }
}
